FROM openjdk:8
# 镜像制作人
MAINTAINER *** 'flyduck@flyduck.com'
## the src file must be at some dir with Dockerfile, eg, may be at 'target/docker' dir.
COPY springboot-docker-1.0-SNAPSHOT.zip springboot-docker.zip
RUN mkdir -p /usr/local/app && mv springboot-docker.zip /usr/local/app
RUN cd /usr/local/app && unzip springboot-docker.zip && rm -rf springboot-docker.zip
RUN chmod 777 /usr/local/app/springboot-docker-1.0-SNAPSHOT/bin/dockerrun.sh
ENV JAVA_OPTS=""
EXPOSE 7003
ENTRYPOINT sh /usr/local/app/springboot-docker-1.0-SNAPSHOT/bin/dockerrun.sh